#include "gc.h"
#include <cstdlib>
#include <cstdio>

const int CONST = 10000000;

struct my
{
  int x, y;
  my ()
  {
    x = 0, y = 0;
  }
};

int main ()
{

  gc_ptr <my> ptr;


  ptr = gc_new <my> (CONST);

  for (int i = 0; i < CONST; i++)
    ptr[i].x = rand();

  //mark_and_sweep();
  while(1);

  return 0;
}
